﻿namespace EyeOpen.Samples.Wpf.Messaging
{
	using EyeOpen.Messaging;

	public partial class MainWindow
	{
		public MainWindow()
		{
			InitializeComponent();

			MessageBroker.Register<ActionMessage>(ShowAction);
		}

		private void ShowAction(ActionMessage o)
		{
			textBox1.Text = o.Action;
		}
	}
}
